/* Author : Maisa Nurul Agnia */
package jtk.project4.fleet.field;

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.ComboField;
import nl.coderight.jazz.form.field.TextField;
import nl.coderight.jazz.form.field.button.RadioButton;

public class PoStatusField extends GroupControl {
	private RadioButton outstandingField;
	private RadioButton closedField;
	private ComboField<String> dateField; //tipe data date
	
	public PoStatusField(String bindID){
		setTitle("header.POStatus"); //disesuaikan dengan nama field
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	private void createFields()
	{
		outstandingField = new RadioButton("outstanding");
		closedField = new RadioButton("closed");
		dateField = new ComboField <String> ("PurchasedFromVendor","wow");
		dateField.setPreferredSize(closedField.getPreferredSize());
		
		
	}
	
	private void createLayout()
	{
		setLayout(new FormLayout())

		.addField(outstandingField)
		.addField(closedField)	
		.addField(dateField)
		;
	}
	
}
